import request from '@/utils/request1'

// 福利发放登记查询
export function selectWelfareRegistration(params) {
  return request({
    url: '/welfareRegistration/load',
    method: 'POST',
    params
  })
}

// 福利发放登记添加
export function addWelfareRegistration(data) {
  return request({
    url: '/welfareRegistration/add',
    method: 'POST',
    data
  })
}

// 福利发放登记分页
export function getList(params) {
  return request({
    url: '/welfareRegistration/list',
    method: 'POST',
    params
  })
}

// 模糊查询发放事由，并查询福利项目 id
export function getGiveReason(params) {
  return request({
    url: '/welfareGive/select/giveReason',
    method: 'POST',
    params
  })
}

// 福利发放登记删除
export function deleteWelfareRegistration(data) {
  return request({
    url: '/welfareRegistration/delete',
    method: 'post',
    data
  })
}

// 福利发放登记修改
export function updateWelfareRegistration(data) {
  return request({
    url: '/welfareRegistration/update',
    method: 'post',
    data
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}

// 人员详情 福利详情
export function getWelfareRegistration(params) {
  return request({
    url: '/welfareRegistration/selectFee',
    method: 'post',
    params
  })
}

// 导入
export function batchInsertwelfareRegistration(data) {
  return request({
    url: '/welfareRegistration/batchInsertwelfareRegistration',
    method: 'post',
    data
  })
}
